/**
 * Copyright 2009-2011 the original author or authors.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.myjung.model;

import net.myjung.model.annotation.MdlAttribute;
import net.myjung.model.annotation.MdlText;

/**
 * @author Steve M. Jung
 */
@SuppressWarnings("serial")
public class MailContent extends BaseObject {
	public static String TYPE_PLAIN = "text/plain";
	public static String TYPE_HTML = "text/html";
	public static String CHARSET_UTF8 = "UTF-8";
	@MdlAttribute
	private String type = TYPE_PLAIN;
	@MdlAttribute
	private String charset = CHARSET_UTF8;
	@MdlText
	private String text;
	public MailContent() {
		super();
	}
	public MailContent(String text) {
		super();
		this.text = text;
	}
	public MailContent(String text, String type) {
		super();
		this.text = text;
		this.type = type;
	}
	public MailContent(String text, String type, String charset) {
		super();
		this.text = text;
		this.type = type;
		this.charset = charset;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCharset() {
		return charset;
	}
	public void setCharset(String charset) {
		this.charset = charset;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
}
